package com.example.qaplatform.repository;

import com.example.qaplatform.entity.ChatEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChatRepository extends JpaRepository<ChatEntity, Long> {
    List<ChatEntity> findByUserIdOrderByCreateTimeDesc(Long userId);
} 